package com.tinyspring;

import com.tinyspring.context.ApplicationContext;
import com.tinyspring.controller.TestController;
import com.tinyspring.service.ITestService;

/**
 * @author: TianYuan
 * @description: 启动类
 * @version: ${version}
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ApplicationContext("com.tinyspring");
//        ITestService iTestService = (ITestService) context.getBean("testServiceImpl");
//        iTestService.test();
        System.out.println("----------------------");
        TestController testController = (TestController) context.getBean("testController");
        testController.test();
    }
}